/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.DatabaseDAO;
import DTO.DatabaseDTO;

/**
 *
 * @author TrongKhoa
 */
public class DatabaseBUS
{    
    private DatabaseDAO _databaseDAOService;
    public DatabaseBUS()
    {
        _databaseDAOService = new DatabaseDAO();
    }
    
    
    public DatabaseDTO CreateNewDatabase(String databaseName)
    {
        return _databaseDAOService.CreateNewDatabase(databaseName);
    }
    
    public DatabaseDTO LoadExistingDatabase(String path)
    {
        return _databaseDAOService.LoadExistingDatabase(path);
    }
    
    public void SetServerPath(String path)
    {
        _databaseDAOService.setServerPath(path);
    }
}
